Xbasic

MD5 Function

Syntax

HashString as C = md5(B input_to_sum )

Arguments

input_to_sum

The data on which to calculate a checksum. md5() accepts both character and blob input.

Description

Generates an MD5 checksum of the text_to_sum

Discussion

Takes as input a message of arbitrary length and produces as output a 128-bit "fingerprint" or "message digest" of the input. MD5() is a more programmer friendly version of *MD5() that returns a 32 character (128-bit) "fingerprint" or "message digest" of Input_Data of arbitrary length. It is conjectured that it is computationally infeasible to produce two messages having the same message digest, or to produce any message having a given pre-specified target message digest. The MD5 algorithm is intended for digital signature applications, where a large file must be "compressed" in a secure manner before being encrypted with a private (secret) key under a public-key cryptosystem such as RSA.

Example

? md5("Alpha Software")
= "755a80a98959abda6bb2c2d91f33963f"

See Also